import Vue from 'vue'
import Vuex from 'vuex'
import App from './App'
import router from './router'
import axios from 'axios'

import VueLazyload from 'vue-lazyload'
import Msg from 'vue-message'
import store from './store'
import 'vant/lib/index.css';
import Vant from 'vant';
import ToastWin from '@/components/base/toast/toast'
import VToastWin from '@/components/base/vToast/toast'

import { isApp, isWX, isIOS } from '@/api/device.js'
import VConsole from 'vconsole'
import xss from 'xss'
Vue.prototype.$xss = xss

Vue.use(VueLazyload)
Vue.use(Msg)
Vue.use(Vant);
Vue.prototype.$toast = ToastWin.install
Vue.prototype.$vToast = VToastWin.install

Vue.config.productionTip = false
// if (process.env.NODE_ENV === 'development') {
//   new VConsole()
// }

/* eslint-disable no-new */
let newVue = new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
